<?php

class ui_fieldset extends ui
{
	function __construct($text = '')
	{
		$this->init(__FILE__,'fieldset');
		$this->add(new ui_legend($text));
		$this->title = $this->last;
		$this->add(new ui_div());
		$this->body = $this->last;
	}
	
	function set_float_width($width)
	{
		$this->set('style','width',$width.'px');
		$this->set('style','float','left');
	}
}
?>